package com.liao.badminton.mapper;

import com.liao.badminton.code.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import com.liao.badminton.entity.ActivityRecord;
import com.liao.badminton.dto.ActivityRecordDto;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
* @author liaocheng
* @date 2024-11-15
* description:群发布活动记录表
*/
@Mapper
public interface ActivityRecordMapper extends BaseMapper<ActivityRecord> {
    int updateBy(ActivityRecord activityRecord);
    int add(ActivityRecord activityRecord);
    List<ActivityRecord> findByPageParam(PageParam<ActivityRecordDto> activityRecordPageParam);
    int countByPageParam(PageParam<ActivityRecord> activityRecordPageParam);
    int deletes(@Param("ids") List<Long> ids);
    List<ActivityRecord> findByIds(@Param("ids") List<Long> ids);
    void addBatch(List<ActivityRecord> list);
    ActivityRecord findById(@Param("id") Long id);
    List<ActivityRecord> findByParam(@Param("param") ActivityRecord param);
}
